import {
    Dashboard,
    Login,
    Product,
    NotFound,
    Article1,
    Article2,
} from '../views'

export const subordination = [

    {
        pathname: '/login',
        component: Login
    }, {
        pathname: '/404',
        component: NotFound
    }
]

export const mainRouter = [
    {
        title: '主页',
        children: [
            {
                title:'主页',
                pathname: '/admin/dashboard',
                component: Dashboard,
                
            }
        ]
    }, {
        title: '商品管理',
        children: [
            {
                title:'商品订单',
                pathname: '/admin/product',
                component: Product,
            }
        ]
    }, {
        title: '文章管理',
        children: [
            {
                title:'文章1',
                pathname: '/admin/article1',
                component: Article1,
            }, {
                title:'文章2',
                pathname: '/admin/article2',
                component: Article2,
            },
        ]
    },

]

/* 


*/